package com.gsc.controller;

import com.gsc.domain.ResponseResult;
import com.gsc.domain.entity.Category;
import com.gsc.domain.vo.PageVo;
import com.gsc.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gscstart
 * @create 2023/1/28-10:14
 * 分类相关接口
 */
@RestController
@RequestMapping("/category")
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    /**
     * 查询分类列表的接口
     * @return
     */
    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
    }


}
